package zy.data.food.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import zy.data.food.domain.OrderDetail;
import zy.data.food.domain.OrderMaster;
import zy.data.food.dto.OrderDTO;

public interface OrderService {

    //创建订单
     OrderDTO  create(OrderDTO orderDTO);

    //查询单个订单
    OrderDTO findone(String orderID);

    //查询订单列表
    Page<OrderDTO> findlist(String buyerOpenid, Pageable pageable);

    //取消订单
    OrderDTO cancle(OrderDTO orderDTO);

    //完结订单
    OrderDTO finish(OrderDTO orderDTO);

    //订单支付
    OrderDTO paid(OrderDTO orderDTO);

    //查询订单列表
    Page<OrderDTO> findList(Pageable pageable);
}
